package com.example.demo.dao;

import com.example.demo.dto.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName SysUserRoleMapper
 * @Desecription TODO 1.2新增
 * @Author zzw
 * @Date 2021/4/7 16:08
 * @Version 1.2
 **/
@Mapper
@Repository
public interface SysUserRoleMapper {
    @Select("SELECT * FROM sys_user_role WHERE user_id = #{userId}")
    List<SysUserRole> listByUserId(Integer userId);
}
